<?
    /* -*- Mode: PHP5; tab-width: 4; indent-tabs-mode: nil; basic-offset: 4 -*- */
    
    /*********************************************************
    *            --== InArch ==--
    *
    * Ajax Get Node Info action
    *
    * @author Kulikov Alexey <a.kulikov@gmail.com>
    * @version n/a
    * @since 04.06.2005
    * @copyright essentialmind.com 2005
    *
    *********************************************************/

    /***
    * class ajaxGetUserInfo
    ****
    * This class will return user information
    ****
    * @package ajax
    * @author A Kulikov <a.kulikov@gmail.com>
    * @version n/a
    * @since 04.06.2005
    * @copyright essentialmind.com 2005
    ***/
    class ajaxGetUserInfo extends ajaxAction{

        function process(){
            $id = (int)$_REQUEST['id'];
            
            $this->smarty->assign('user',$this->db->getRow("SELECT 
                                                                login, 
                                                                id, 
                                                                created,
                                                                email,
                                                                fullname
                                                            FROM user_access AS ua
                                                            LEFT JOIN user_data AS ud ON ua.id = ud.uid
                                                            WHERE id = ".$id));
            
            $this->r->html = $this->smarty->preFetch('ajax'.DIRECTORY_SEPARATOR.'userInfo.html');
        }
    }
?>